import request from '@/utils/request'

// 查询三方评审任务列表
export function listThird(query) {
  return request({
    url: '/system/task/thirdList',
    method: 'get',
    params: query
  })
}

// 查询三方审核任务详情
export function getTask(reviewTaskId) {
  return request({
    url: '/system/task/third/' + reviewTaskId,
    method: 'get'
  })
}

// 删除三方审核任务详情
export function delTask(reviewTaskId) {
  return request({
    url: '/system/task/delete/' + reviewTaskId,
    method: 'delete'
  })
}

// 在线预审查看
export function getOnLinePreliminary(query) {
  return request({
    url: '/web/approval/onLinePreliminary',
    method: 'get',
    params: query
  })
}

// 新增意见汇总审批
export function addApprovalAdd(data) {
  return request({
    url: "/web/approval/add",
    method: "post",
    data: data,
  });
}